package com.jyk.blog.mapper;

import com.jyk.blog.po.Blog;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BlogMapper {
    List<Blog> findAll();
    List<Blog> findByUserId(int id);
    Blog findById(int id);
    Blog findByTime(String time, int userID);
    List<Blog> findByType(int id);
    void insertOne(Blog b);
    void deleteOne(int id);
}
